<template>
  <div class="semester-side-bar">
    <div class="semester-active">
      <img
        src="http://www.placehold.it/160x120.png/"
        alt=""
      >
      <div class="semester-title">photoshop基础知识photoshop基础知识</div>
      <div class="semester-preview">预览</div>
    </div>
    <div class="router-list">
      <div>引导</div>
      <div>教学团队</div>
      <div>引导</div>
      <div>引导</div>
    </div>

  </div>
</template>

<script>
export default {
  name: 'SemesterSideBar',
};
</script>

<style lang="scss" scoped>
.semester-side-bar {
  width: 100%;
  min-width: 200px;
  min-height: 642px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  padding: 20px;
  .semester-active {
    img {
      width: 160px;
      height: 120px;
      box-sizing: border-box;
      overflow: hidden;
    }
    .semester-title {
      max-width: 160px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 14px;
      font-weight: bold;
      color: #4c5359;
      margin-top: 2px;
    }
    .semester-preview {
      width: 160px;
      height: 40px;
      font-size: 14px;
      font-weight: 400;
      text-align: center;
      line-height: 40px;
      color: #ffffff;
      background: #4c5359;
      margin-top: 18px;
    }
    margin-bottom: 24px;
  }
  .router-list {
    width: 160px;
    height: 300px;
    color: #ffffff;
    & > div {
      padding: 12px;
      font-size: 14px;
      color: #4c5359;
      cursor: pointer;
    }
    & > div:hover {
      color: #ff783c;
    }
  }
}
</style>
